home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: mxsld2.pd.infn.it!LORETI
- From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
- Subject: Re: leap year
- X-Nntp-Posting-Host: mxsld2.pd.infn.it
- Message-ID: <Dov606.A97@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@mxsld2.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <4iq64e$evq@daryl.scsn.net>
- Date: Tue, 26 Mar 1996 07:26:26 GMT
-
- In article <4iq64e$evq@daryl.scsn.net>, shrader@scsn.net (Scott Shrader) writes:
- >can anyone tell me in C how do I write a program so it can tell me if a
- >year is a leap year.
-
- Sure!
-
- #include <stdio.h>
-
- int main()
- {
- puts("The answer is in the FAQ list of sci.math,");
- puts("available from RTFM.mit.edu in pub/usenet/sci.math .");
- return 0;
- }
-
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-